<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Eloquent\Model;

class InformationType extends Model
{
	use HasDateTimeFormatter;
    use SoftDeletes;

    protected $table = 'information_type';

    protected function array()
    {
        $TypeData = self::all();
        foreach ($TypeData as $k => $v){
            $array[$v['id']] = $v['name'];
        }
        return $array;
    }
}
